/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-10-03     MBW       the first version
 */
#ifndef MPU6050_MS5611_OTHER_FLOW_UART_DATA_H_
#define MPU6050_MS5611_OTHER_FLOW_UART_DATA_H_
#include "sys.h"
typedef struct
{
    //
    s16 vx;
    s16 vy;
    s16 dx;
    s16 dy;
    s32 flow_dis;
    u8 of_quality;
    //
    u32 dis1_cm,dis2_cm,dis3_cm,dis4_cm;
    //
    s16 box_left_x;
    s16 box_left_y;
    s16 box_length_x;
    s16 box_length_y;
    s16 confidence;
    u8  label;
    u8  frame_numbers;
    float mediumx,mediumy;

} _uart_of_st;
extern _uart_of_st uart_data;
void USART_send_char(u8 c);
void USART_report_FlowRes(s16 vx,s16 vy,s16 dx ,s16 dy ,s32 dis,u8 q ) ;
void USART_report_K210Res(s16 lx,s16 ly,//左上点的坐标
        s16 bx,s16 by,//矩形框的长宽
        s16 c,u8 n,u8 z);//置信率c，标号n，帧数z
void uart_GetOneByte(uint8_t data);
static void uart_DataAnl(uint8_t *data, uint8_t len);
#endif /* MPU6050_MS5611_OTHER_FLOW_UART_DATA_H_ */
